/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2020-03-20 14:49:47
 * @LastEditors: kl2018
 * @LastEditTime: 2020-09-29 10:09:27
 */
import { WeaTools } from "ecCom";

export const getDoing = (requestid, returntdid) => {
  const params = {
    requestid: requestid,
    persontype: 1,
  }
  WeaTools.callApi('/api/odoc/odocNewTodoList/getOperatorPersons', "POST", params).then(data => {
    try {
      jQuery("#" + returntdid).html(data.info);
      jQuery("#" + returntdid).parent().attr("title", data.info)
    } catch (e) { }
  })
}

export const getTodo = (requestid, returntdid) => {
  const params = {
    requestid: requestid,
    persontype: 0,
  }
  WeaTools.callApi('/api/odoc/odocNewTodoList/getOperatorPersons', "POST", params).then(data => {
    try {
      jQuery("#" + returntdid).html(data.info);
      jQuery("#" + returntdid).parent().attr("title", data.info)
    } catch (e) { }
  })
}